package com.elder.business.mapper;

import java.util.List;
import com.elder.business.domain.ElderlyApartmentAnnouncements;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

/**
 * 公告信息Mapper接口
 * 
 * @author elder
 * @date 2023-11-26
 */
public interface ElderlyApartmentAnnouncementsMapper 
{
    /**
     * 查询公告信息
     * 
     * @param id 公告信息主键
     * @return 公告信息
     */
    public ElderlyApartmentAnnouncements selectElderlyApartmentAnnouncementsById(Long id);

    /**
     * 查询公告信息列表
     *
     * @return 公告信息集合
     */
    public List<ElderlyApartmentAnnouncements> selectElderlyApartmentAnnouncementsList(@Param("title") String title,@Param("userIdList") List<Long> userIdList,@Param("postDate") Long postDate ,@Param("expiryDate") Long expiryDate);

    /**
     * 新增公告信息
     * 
     * @param elderlyApartmentAnnouncements 公告信息
     * @return 结果
     */
    public int insertElderlyApartmentAnnouncements(ElderlyApartmentAnnouncements elderlyApartmentAnnouncements);

    /**
     * 修改公告信息
     * 
     * @param elderlyApartmentAnnouncements 公告信息
     * @return 结果
     */
    public int updateElderlyApartmentAnnouncements(ElderlyApartmentAnnouncements elderlyApartmentAnnouncements);

    /**
     * 删除公告信息
     * 
     * @param id 公告信息主键
     * @return 结果
     */
    public int deleteElderlyApartmentAnnouncementsById(Long id);

    /**
     * 批量删除公告信息
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteElderlyApartmentAnnouncementsByIds(Long[] ids);

    List<ElderlyApartmentAnnouncements> getRecentAnnouncementsContent();
}
